package kgc.NewsDao;

import kgc.pojo.News_Category;
import kgc.pojo.News_Comment;
import kgc.pojo.News_Detail;
import kgc.pojo.News_User;

import java.sql.ResultSet;
import java.util.List;

/**
 * @author DXH
 * @version 1.0.0
 * @ClassName NewsDao
 * @Description TODO
 * @createTime 2022年04月05日 12:26:38
 */
public interface NewsDao {
    public List<News_Category> selectCategoryAll();
    public List<News_Comment> selectCommentAll();
    public List<News_Detail> selectDetailAll();
    public List<News_User> selectUserAll();

    public int deleteById(int id, int num);
    public int updateById(int id, int num);
    public int updateCategory(News_Category category);
    public int updateUser(News_User user);
    public ResultSet selectById(int id, int num);
    public int insertCategory(News_Category category);
    public int insertUser(News_User user);
}
